package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-06-04
 * Time: 21:43
 */
public class Bird extends Animal{
    public Bird(String name, int age){
        super(name, age);
    }

    public void fly(){
        System.out.println(this.name + " 正在飞---------");
    }

    @Override
    public void eat(){
        System.out.println(this.name + " 正在吃鸟粮(bird)");
    }
}
